﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package reprise.css.propertyparsers {
    import reprise.css.*;

    public dynamic class RuntimeParser extends CSSPropertyParser {

        public static var KNOWN_PROPERTIES:Object = [];

        public static function registerProperty(_arg1:String, _arg2:uint, _arg3:Boolean, _arg4:Class=null, _arg5:Function=null):void{
            if (_arg5 == null){
                switch (_arg2){
                    case CSS.PROPERTY_TYPE_STRING:
                        _arg5 = strToStringProperty;
                        break;
                    case CSS.PROPERTY_TYPE_INT:
                        _arg5 = strToIntProperty;
                        break;
                    case CSS.PROPERTY_TYPE_FLOAT:
                        _arg5 = strToFloatProperty;
                        break;
                    case CSS.PROPERTY_TYPE_BOOL:
                        _arg5 = strToBoolProperty;
                        break;
                    case CSS.PROPERTY_TYPE_URL:
                        _arg5 = strToURLProperty;
                        break;
                    case CSS.PROPERTY_TYPE_COLOR:
                        _arg5 = strToColorProperty;
                        break;
                    default:
                        log(((("e Error registering property with name \"" + _arg1) + "\". Unknown type ") + _arg2));
                        return;
                };
            };
            var _local6:Object = {parser:_arg5};
            if (_arg3){
                _local6["inheritable"] = true;
            };
            KNOWN_PROPERTIES[_arg1] = _local6;
        }

    }
}//package reprise.css.propertyparsers 
